package controladores;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class ConnectionFactory {

    private EntityManagerFactory factory;

    public ConnectionFactory() {

        factory = Persistence.createEntityManagerFactory("JpaPU");
    }

    public EntityManagerFactory getFactory() {

        return factory;
    }
}
